package com.zbl.zblproject.core.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zbl.zblproject.core.entity.Pv;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author youlanqiang
 * @version 1.0
 * @date 2019/7/12
 */
@Repository
public interface PvMapper extends BaseMapper<Pv> {

    @Select("SELECT * FROM zbl_pv WHERE FROM_UNIXTIME(create_time)>=DATE_SUB(NOW(),INTERVAL 3 DAY) ORDER BY id desc")
    List<Pv> list();
}
